xd="零一二三四五六七八九"#字符串
#xd=["零","一","二","三","四","五","六","七","八","九"]#列表 数组
#xd=("零","一","二","三","四","五","六","七","八","九")#元组
#xd={0:"零",1:"一",2:"二",3:"三",4:"四",5:"五",6:"六",7:"七",8:"八",9:"九"]} #字典
for i in range(1,10):
    for j in range(1,i+1):
        c=j*i
        if c<10:
            d="得"+xd[c]+"  "
        elif c%10==0:
            d=xd[c//10]+"十"+"  "
        else:
            d=xd[c//10]+"十"+xd[c%10]
        print("{}{}{:2}".format(xd[j],xd[i],d),end=" ")
    print(end="\n")        
